<pre>
<?php

printf("pi equals %f\n", 3.14159);
// Outputs "3.14"
printf("%.2f\n", 3.14159);
// Outputs " 3.14"
printf("%10.2f\n", 3.14159);
// Outputs "3.1415900000"
printf("%.10f\n", 3.14159);
// Outputs "halfofthe"
printf("%.11s\n", "halfofthestring");
// Outputs "1111011 123 123.000000 test"
printf("%b %d %f %s\n", 123, 123, 123, "test");


print strcmp("aardvark", "zebra"); // -1
print strcmp("zebra", "aardvark"); // 1
print strcmp("mouse", "mouse"); // 0
print strcmp("mouse", "Mouse"); // 1
print strncmp("aardvark", "aardwolf", 4); // 0
print strncmp("aardvark", "aardwolf", 5); // -1

print "<br>";
$a = hexdec("80000000");
print $a;
?>
</pre>